<?php
/**
 * FastApp.
 * 8/14/24
 * @Author 深色的海 (wx:deepsea_0024)
 * @Contact telegram:deepsea159
 */

namespace App\Fastapp\Api\Controller\Comm;

use App\Fastapp\Api\Controller\ApiController;
use App\Fastapp\Api\Service\Comm\CurrencyService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;

#[Controller('api/currency')]
class CurrencyController extends ApiController
{
    #[Inject]
    public CurrencyService $service;

    #[GetMapping]
    public function list()
    {
        return $this->success($this->service->list($this->request->all()));
    }
}